﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Serveur.DataAccess.EF;

namespace DataFactory
{
    public class RandomCreator
    {
        private static Random rand_ = new Random();

        public static Resources randomResource()
        {

            return new Resources()
            {
                Food = rand_.Next(50),
                Gold = rand_.Next(50),
                Stone = rand_.Next(50),
                Wood = rand_.Next(50)
            };
        }

        public static UnitStatistics randomUnitStats()
        {
            return new UnitStatistics()
            {
                Attack = rand_.Next(10),
                Defense = rand_.Next(10),
                Dexterity = rand_.Next(10),
                MaxHP = rand_.Next(10),
                ProductionTime = rand_.Next(10),
                Speed = rand_.Next(10)
            };
        }

        /*public static BuildingStatistics randomBuildingStats()
        {
            return new BuildingStatistics()
            {
                MaxHP = rand_.Next(),
                ProductionTime = rand_.Next(),
            };
        }

        public static Skill randomSkill(SkillType t)
        {
            return new Skill()
            {
                Cost = rand_.Next(),
                Dodgeable = false,
                MaxRange = rand_.Next(),
                MinRange = rand_.Next(),
                Name = "Patating!",
                Power = rand_.Next(),
                SkillType = t,
            };
        }*/

        public static UnitSlot randomSlot(/*City city, */UnitType e)
        {
            return new UnitSlot()
            {
                //Disabled = false,
                Unit = e
                //Spirit = 100
            };
        }
    }
}
